package com.springboot.cli.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.springboot.cli.dao.ShiftMapper;
import com.springboot.cli.domain.ShiftEntity;
import com.springboot.cli.service.IShiftService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * description:
 *
 * @author huxingjie
 * @date 2023/11/7 10:26
 */
@Service
public class ShiftServiceImpl extends ServiceImpl<ShiftMapper, ShiftEntity> implements IShiftService {
    @Autowired
    ShiftMapper shiftMapper;

    @Override
    public List<ShiftEntity> list(ShiftEntity shiftEntity) {
        LambdaQueryWrapper<ShiftEntity> queryWrapper = Wrappers.lambdaQuery(shiftEntity);
        return super.list(queryWrapper);
    }
}
